.ai-container {
  width: 100%;
  height: 100vh;
  background-color: #f5f5f5;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, 
  'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 
  'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* 顶部导航栏 */
.ai-navbar {
  background-color: white;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
}

.nav-icon {
  font-size: 16px;
  color: #666;
}

/* 固定的猜你想问区域 */
.fixed-suggested-section {
  background-color: white;
  border-radius: 12px;
  padding: 16px;
  margin: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 60px;
  z-index: 10;
}

/* 聊天内容区域 */
.chat-content {
  flex: 1;
  padding: 0 16px 16px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 聊天消息样式 */
.chat-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.bot-message {
  justify-content: flex-start;
}

.user-message {
  justify-content: flex-end;
  flex-direction: row-reverse;
  margin-left: auto;
  max-width: 80%;
  align-items: flex-end;
}

.user-message .message-avatar {
  margin-left: 8px;
}

.user-message .message-bubble {
  margin-right: 0;
}

.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #1890ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bot-icon {
  font-size: 20px;
  color: white;
}

.message-bubble {
  max-width: 80%;
  background-color: white;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

.message-bubble::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 12px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 8px solid white;
}

.user-message .message-bubble {
  background-color: #1890ff;
  color: white;
}

.user-message .message-bubble::before {
  left: auto;
  right: -8px;
  border-right: none;
  border-left: 8px solid #1890ff;
}

.message-text {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
}

.user-message .message-text {
  color: white;
}

/* 加载动画样式 */
.loading-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.loading-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #1890ff;
  animation: loading-bounce 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0s;
}

@keyframes loading-bounce {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* 打字指示器样式 */
.typing-indicator {
  display: inline-block;
  animation: typing 1.5s infinite;
  color: #1890ff;
  font-weight: bold;
}

@keyframes typing {
  0%, 60%, 100% {
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
}

/* 建议区域样式 */
.suggested-section {
  background-color: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.change-batch-btn {
  background-color: #f0f0f0;
  color: #666;
  border: none;
  border-radius: 16px;
  padding: 4px 12px;
  font-size: 12px;
  height: auto;
}

.change-batch-btn:hover {
  background-color: #e0e0e0;
}

/* 问题列表样式 */
.questions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.question-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background-color: #f8f9fa;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.question-item:hover {
  background-color: #e9ecef;
  transform: translateX(4px);
}

.question-number {
  width: 20px;
  height: 20px;
  background-color: #1890ff;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.question-text {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
  flex: 1;
}

/* 操作按钮列表样式 */
.actions-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.action-btn {
  background-color: #e6f7ff;
  color: #1890ff;
  border: 1px solid #91d5ff;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  height: auto;
  flex: 1;
  min-width: 80px;
  transition: all 0.3s ease;
}

.action-btn:hover {
  background-color: #bae7ff;
  border-color: #69c0ff;
  transform: translateY(-2px);
}

.action-btn:active {
  transform: translateY(0);
}

/* 底部输入区域 */
.input-area {
  background-color: white;
  border-top: 1px solid #e8e8e8;
  padding: 12px 16px;
  flex-shrink: 0;
}

/* 加载状态提示 */
.loading-status {
  margin-bottom: 12px;
  padding: 8px 12px;
  background-color: #e6f7ff;
  border: 1px solid #91d5ff;
  border-radius: 8px;
  animation: loading-pulse 2s ease-in-out infinite;
}

.loading-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #1890ff;
  font-weight: 500;
}

.loading-icon {
  font-size: 16px;
  animation: loading-bounce 1.4s ease-in-out infinite;
}

@keyframes loading-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.input-container {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #f5f5f5;
  border-radius: 24px;
  padding: 8px 12px;
}

.voice-btn {
  background-color: transparent;
  border: none;
  color: #666;
  padding: 8px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.voice-btn:hover:not(:disabled) {
  background-color: #e0e0e0;
  color: #1890ff;
}

.voice-btn:disabled {
  background-color: #f5f5f5;
  color: #d9d9d9;
  cursor: not-allowed;
}

.message-input {
  flex: 1;
  background-color: transparent;
  border: none;
  font-size: 14px;
  color: #333;
}

.message-input::placeholder {
  color: #999;
}

.message-input:disabled {
  background-color: #f5f5f5;
  color: #d9d9d9;
  cursor: not-allowed;
}

.message-input:disabled::placeholder {
  color: #d9d9d9;
}

.send-btn {
  background-color: #1890ff;
  border: none;
  color: white;
  padding: 8px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.send-btn:hover:not(:disabled) {
  background-color: #40a9ff;
  transform: scale(1.05);
}

.send-btn:disabled {
  background-color: #d9d9d9;
  color: #999;
  cursor: not-allowed;
}

/* 响应式设计 */
@media (max-width: 375px) {
  .fixed-suggested-section {
    margin: 12px;
    padding: 12px;
  }
  
  .chat-content {
    padding: 0 12px 12px 12px;
    gap: 16px;
  }
  
  .suggested-section {
    padding: 12px;
  }
  
  .section-title {
    font-size: 15px;
  }
  
  .question-item {
    padding: 10px;
  }
  
  .question-text {
    font-size: 13px;
  }
  
  .action-btn {
    font-size: 13px;
    padding: 6px 12px;
  }
  
  .input-area {
    padding: 10px 12px;
  }
  
  .input-container {
    padding: 6px 10px;
  }
  
  .voice-btn,
  .send-btn {
    width: 36px;
    height: 36px;
  }
}

/* 滚动条样式 */
.chat-content::-webkit-scrollbar {
  width: 4px;
}

.chat-content::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.chat-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 2px;
}

.chat-content::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
